package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student stu = new Student("哦豁",88,"月球","jsd2302","110399");
        stu.eat();
        stu.sleep();
        stu.sayHi();
        stu.study();

        Teacher tea = new Teacher("大哦豁",11,"火星",100.1);
        tea.eat();
        tea.sleep();
        tea.sayHi();
        tea.teach();

        Doctor doc = new Doctor("张飞",101,"杀猪场","路人王");
        doc.eat();
        doc.sleep();
        doc.sayHi();
        doc.cut();


    }
}
